 var spopTool = {
	showTips: function (content, position, style, callback, autoclose) {

		//先删除已有的提示
		// document.getElementById('spop--top-center').remove();
		var exist = document.getElementById('spop--' + position);
		if (exist) exist.remove();

		spop({
			template: content,
			position: position,
			style: style,
			autoclose: autoclose,
			onClose: function () {
				if (callback) {
					callback();
				}
			}
		});
	},
	errorTR: function (content, callback) {
		this.showTips(content, 'top-right', 'error', callback);
	},
	errorTC: function (content, callback) {
		this.showTips(content, 'top-center', 'error', callback);
	},
	warnTR: function (content, callback) {
		this.showTips(content, 'top-right', 'warning', callback, 3000);
	},
	warnTC: function (content, callback) {
		this.showTips(content, 'top-center', 'warning', callback, 3000);
	},
	successTR: function (content, callback) {
		this.showTips(content, 'top-right', 'success', callback, 3000);
	},
	successTC: function (content, callback) {
		this.showTips(content, 'top-center', 'success', callback, 3000);
	},
	//保持不关闭
	successTCKeep: function (content, callback) {
		this.showTips(content, 'top-center', 'success', callback);
	},
	infoTC: function (content, callback) {
		this.showTips(content, 'top-center', 'info', callback, 3000);
	},
	waitingBox: function () {
		var msgBox = Ext.Msg.show({
			title: '进度',
			msg: '正在处理,请等待...',
			modal: true,
			wait: true,
			width: 400,
			closable: false
		});
		return msgBox;
	}
};